# A tibble: 2 × 1
Name
<chr>
1 Greg Macfarlane
2 BYU Transpo Intern
Understand and describe the purpose of version control in transportation analysis projects.
Create a git repository and commit changes to text files using the command line as well as third-party graphical git clients.
Use GitHub to collaborate with others on a shared project.
How many of you have ended up here?
mydocument.docx
mydocument_final.docx
mydocument_final_commentsGSM.docx
mydocument_final_commentsSHA.docx
mydocument_really_final.docx
mydocument_really_final_gsmedit again.docxGoogle docs has made this better, but still not perfect.
Chris is working on new code for transit network skimming. Hayden is working on a new external zone design. Neither can wait for the other to be done, but they may need to edit similar files in the travel demand model.
Multiple developers can have their own local working copies of a repository.
Different developers can work on their own branches (commit path). Then, two branches can be merged.
Image from Atlassian
You have started building the next version of your travel model when you get a report of a bug that needs to be fixed immediately. You have already made lots of changes to the part of the code where the bug is.
Formalize how updates are made, based on branches.
“Git Flow” development pattern. Image Atlassian
Create a new folder, and then start a terminal (git-bash) from inside that folder.
Edit the file using a text editor, save it, and then check to see the changes.
You can now keep track of changes to a local file.
Image from GitHub
This helps people collaborate by formalizing discussion related to proposed changes.
Go to https://github.com/gregmacfarlane/udot-gittraining
Push the “fork” button at the top-right, and fork it to your own account.
participants.csv.commit, push, and pull?Linkedin Learning / DataCamp
Atlassian: https://www.atlassian.com/git/tutorials1
GitHub: https://docs.github.com/en/get-started/start-your-journey/git-and-github-learning-resources